[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 XPmouseEdit()
 A dbEdit() alike function, supporting the Mouse
------------------------------------------------------------------------------

  Function:    XPmouseEdit()

               The XPmouseEdit() Function is a powerful function that
               emulates quite some of dbEdit()'s features, adding to
               those full Mouse Support.

               Resuming XPmouseEdit()'s features versus dbEdit() comes
               down to this:

               .    The Mouse if fully supported for Cursor movements
                    and emulates the Enter and Esc keys with the Left
                    and Right button.

               .    The handling of the Trap function has been replaced
                    by a code block, which are faster and eleganter to
                    execute. I have the habit of calling this code-block
                    the 'MouseTrap' function.

               .    The drawback is that only 1 column is supported, but
                    the idea is that this function would generally be
                    used as for scrolling in tables, and not complete
                    editing anyway, as that is not very efficient with a
                    mouse. Implementing more columns should be possible,
                    and may be implemented in a future release.

               The previous version of this function has a
               little subtle bug in the Header display. it's
               been corrected..

  Syntax:      XPmouseEdit(nTop,nLeft,nBottom,nRight[,;
                              cHeader],bFld[,bTrap])

  Arguments:   The four first arguments define the table's position
               on the screen. cHeader is a string defining what should be
               the header, use NIL for no header. cFieldCode is a code
               block (without parameters), which defines what should be
               displayed in the column.

  Returns:     This function does return a value, 0 when the user
               pressed Esc (or pressed the right button) and current
               Recno() when selected with Enter (or Left button). But of
               course, one does not really need this value.

  Usage:       See the demo programs that have been supplied with
               the Expand Library for some detailed examples on how to
               use this function.

See Also: MouseTrap XPmouseMenu() XPmouseChoice() XPmouseBrowse()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson